import { setCookie, removeCookie } from '@utils/jsCookie.js'

export default {
  SAVEUSER(state, userInfo) {
    state.userInfo = userInfo
    console.log(userInfo)
    setCookie('userInfo', userInfo)
  },
  REMOVEUSER(state, userInfo) {
    state.userInfo = null
    removeCookie('userInfo')
  }
}
